<template>
  <div class="my_box">
    <div class="head">
      <div class="bg">
        <img src="http://liufusong.top:8080/img/profile/bg.png" alt="" />
      </div>

      <div class="loginr">
        <div class="pic">
          <img src="http://liufusong.top:8080/img/profile/avatar.png" alt="" />
        </div>
        <div class="txt">
          <p>游客</p>
          <div class="btn">去登录</div>
        </div>
      </div>
    </div>

    <div class="my_nav">
      <ul>
        <li>
          <van-icon name="star-o" size="20" />
          <span>我的收藏</span>
        </li>
        <li>
          <van-icon name="wap-home-o" size="20" />
          <span>我的出租</span>
        </li>
        <li>
          <van-icon name="tosend" size="20" />
          <span>看房记录</span>
        </li>
      </ul>
      <ul>
        <li>
          <van-icon name="notes-o" size="20" />
          <span>成为房主</span>
        </li>
        <li>
          <van-icon name="contact" size="20" />
          <span>个人资料</span>
        </li>
        <li>
          <van-icon name="service-o" size="20" />
          <span>联系我们</span>
        </li>
      </ul>
    </div>

    <div class="my_poster">
      <img src="http://liufusong.top:8080/img/profile/join.png" alt="" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'user-page',
  data() {
    return {}
  },
  methods: {},
  computed: {},
  watch: {}
}
</script>

<style scoped lang="less">
.my_box {
  text-align: center;
}

.head {
  display: flex;
  justify-content: center;

  .bg {
    width: 375px;
    height: 191px;
    img {
      width: 100%;
    }
  }
  // 登录
  .loginr {
    margin-top: 136px;
    position: relative;
    position: absolute;
    width: 318px;
    height: 165px;
    background-color: #fff;
    box-shadow: 0 0 10px 3px #ddd;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    .pic {
      position: relative;
      transform: translateY(-70%);

      width: 70px;
      height: 70px;
      border-radius: 50%;
      background-color: #fff;
      box-shadow: 0 2px 2px #bdbdbd;
      display: flex;
      justify-content: center;
      align-items: center;
      img {
        width: 60px;
        height: 60px;
      }
    }
    .txt {
      position: relative;
      transform: translateY(-30px);
      display: flex;
      flex-direction: column;
      align-items: center;
      p {
        font-size: 13px;
        color: #333;
      }
      .btn {
        margin-top: 20px;
        width: 69px;
        height: 30px;
        background-color: #21b97a;
        font-size: 13px;
        text-align: center;
        line-height: 30px;
        color: #fff;
        border-radius: 4px;
      }
    }
  }
}
// 金刚区
.my_nav {
  position: relative;
  transform: translateY(130px);
  ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
    li {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      flex: 1;
      height: 65px;
      span {
        margin-top: 8px;
        font-size: 13px;
        color: #333;
      }
    }
  }
}
// 海报
.my_poster {
  position: relative;
  transform: translateY(130px);
  img {
    width: 345px;
    height: 84px;
  }
}
</style>
